package com.yiban.demo.LoginUser.Entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@NoArgsConstructor
@Data
@AllArgsConstructor
@JsonIgnoreProperties(value = "password",allowGetters = false,allowSetters = true)
public class LoginUserVO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不可为空")
    private String password;
    private String nickname;
    private String role;
}
